//调用接口配置文件
import { request } from 'config/request'
// 户型详情
export async function getHouseTypeDetail(params) {
  return request({
    url: 'admin/housetype/detail',
    method: 'GET',
    data: params,
    headers:{
      "Content-type":"application/json",
    }
  });
};
//新建户型
export async function houseAdd(params) {
  return request({
      url: 'admin/housetype/create',
      method: 'POST',
      data: params,
      headers:{
           "Content-type":"application/json",
      }
  });
};
//更新户型
export async function houseUpdate(params) {
  return request({
      url: 'admin/housetype/update',
      method: 'POST',
      data: params,
      headers:{
           "Content-type":"application/json",
      }
  });
};
//户型标签
export async function labelQueryList(params) {
  return request({
      url: 'admin/label/queryList',
      method: 'POST',
      data: params,
      headers:{
          "Content-type":"application/json",
      }
  });
};
//查询3级地址信息
export async function areAddressGet(params) {
  return request({
      url: 'admin/address/queryAllAddress',
      method: 'GET',
      data: params,
      headers:{
          "Content-type":"application/json",
      }
  });
};
//楼盘列表
export async function houseListGet(params) {
  return request({
      url: 'admin/estate/adminList',
      method: 'POST',
      data: params,
      headers:{
          "Content-type":"application/json",
      }
  });
};